import axios from "./axios";

export const getLogin = (params: object) => {
    return axios({
        method: "post",
        url: "http://localhost:9000/api/login",
        data: params
    })
}

export const getData = () => {
    return axios({
        url: "http://localhost:9000/api/data"
    })
}

export const getMap = (adcode: number) => {
    return axios({
        url: `https://geo.datav.aliyun.com/areas_v3/bound/${adcode}_full.json`
    })
}